<template>
  <div class="flex h-screen w-screen overflow-hidden bgUrl" style="justify-content: flex-end;align-items: center;">
    <div class="loginTitle flex items-center"><img class="loginStyle" src="@/assets/images/logo.png"><span class="titleStyle">{{ underlineToHump(appStore.getTitle) }}</span></div>
    <!-- 右边的登录界面 -->
    <div
      class="max-w-380px" style="margin-right: 120px;"
    >
      <!-- 账号登录 -->
      <LoginForm class="m-auto h-auto p-30px lt-xl:(rounded-3xl light:bg-white)" />
    </div>
  </div>
</template>
<script lang="ts" setup>
import { underlineToHump } from '@/utils'
import { useDesign } from '@/hooks/web/useDesign'
import { useAppStore } from '@/store/modules/app'
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components'

const appStore = useAppStore()
defineOptions({ name: 'Login' })
const { t } = useI18n()
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('login')
</script>

<style lang="scss" scoped>
$prefix-cls: #{$namespace}-login;

.#{$prefix-cls} {
  overflow: auto;

  &__left {
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      background-image: url('@/assets/svgs/login-bg.svg');
      background-position: center;
      background-repeat: no-repeat;
      content: '';
    }
  }
}
.bgUrl{
  width: 100%;
  height: 100%;
  background-image: url('@/assets/images/loginBg.png');
  background-size: cover;
  background-position: left -70px;
  position: relative;
  .loginTitle{
    position: absolute;
    top:50px;
    left: 65px;
    .titleStyle{
      height: 60px;
      font-family: HarmonyOS;
      font-size: 42px;
      font-weight: bold;
      line-height: normal;
      letter-spacing: 0.05em;
      font-variation-settings: "opsz" auto;
      font-feature-settings: "kern" on;
      color: #FFFFFF;
      margin-left: 24px;
    }
    .loginStyle{
      width: 50px;
      height: 50px;
    }
  }
}
</style>
